import axios from "./axios";//默认导出，名字可以变

export const getTopics = params =>axios.get('./topics',{params:{id:1,page:1}})//第一个params是固定的属性名，后跟要传的参数对象
export const postTopic = (data)=>axios.post('./topics',data)
export const collectTopic = ()=>axios.post('./',)
